<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<title>视频直播</title>
<style>
body {
	margin: 0;
	text-align: center;
}

.video_play {
	height: 100%;
	width: 100%;
}
</style>

</head>
<script src="https://open.ys7.com/sdk/js/1.3/ezuikit.js"></script>
<body>
	<input id=cameraId type="hidden" value="${video.id}" />
	<div>
		<video class="video_play" id="myPlayer" poster="" controls playsInline webkit-playsinline autoplay>
			<source src="${video.rtmp}" type="" />
			<source src="${video.hls}" type="application/x-mpegURL" />
		</video>
	</div>

	

	<script>
		var player = new EZUIPlayer('myPlayer');
		player.on('error', function() {
			console.log('error');
		});
		player.on('play', function() {
			console.log('play');
		});
		player.on('pause', function() {
			console.log('pause');
		});

	</script>
</body>
</html>